(function() {
   $(document).ready(
      function favset(e) {
        var parpar = $(e.target).parent().parent();
        var quoteid = parpar.find('.quoteid').html();
        var other = parpar.find('.votedown');
        $.post(
          '/vote/',
          {'quoteid': quoteid, 'vote': 1},
          function() {
              $(e.target).attr('src', '/images/up.png');
              $(other).attr('src', '/images/down-grey.png');
              star_for_voting();
          }
        );

        return false;
      }
   )
})();